#ifndef GETHISTORYREQUEST_H
#define GETHISTORYREQUEST_H

#include "network/networkgetjsonlistrequest.h"


class GetHistoryResponse;
class GetHistoryRequest : public Network::GetJSONListRequest
{
    Q_OBJECT
public:
    explicit GetHistoryRequest(qint64 partnerId,
                               int messageCount,
                               qint64 lastId);
    ~GetHistoryRequest();

private:
    GetHistoryResponse *m_response;
    qint64 m_partnerId;
    int m_messageCount;
    qint64 m_lastId;

private:
    Network::JSONListResponse &jsonListResponse();

public:
    const Network::JSONListResponse &jsonListResponse() const;
    QUrl url() const;
};

#endif // GETHISTORYREQUEST_H
